﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="rep_kq.aspx.cs" Inherits="HY.WEB.OA._rep_kq" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
 <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel2"  />


  <ext:Panel ID="Panel2" runat="server" Height="250px"  AutoWidth="true" ShowBorder="True"
        Layout="HBox" BoxConfigAlign="Stretch" BoxConfigPosition="Left" BoxConfigPadding="0"
        BoxConfigChildMargin="0 0 0 0" ShowHeader="True" Title="员工考勤清单">
     
        <Items>

        <ext:Panel ID="Panel1" Title="查询" EnableBackgroundColor="true" Width="300px" runat="server"   BoxFlex="1" 
                BodyPadding="5px" ShowBorder="true" ShowHeader="true">
           
                <Items>
                    <ext:SimpleForm ID="SimpleForm1" runat="server" BodyPadding="5px" EnableBackgroundColor="true"  ShowHeader="false" >
                        <Items>
             
               <ext:DropDownList ID="ddlperson" runat="server" Label="选择员工">  </ext:DropDownList>  
            
          <ext:DatePicker runat="server" Label="考勤日期" EmptyText="请选择查询日期"   ID="date1"   DateFormatString="yyyy-M-d"  />
            <ext:DatePicker runat="server" Label="考勤日期" EmptyText="请选择查询日期"   ID="date2"   DateFormatString="yyyy-M-d"  />
           <ext:Button ID="btsearch" runat="server" Text="查询" OnClick="btsearch_Click">
             </ext:Button>

                  </Items>
                    </ext:SimpleForm>

           </Items>
            </ext:Panel>
            
             
     
            <ext:Grid ID="Grid2" Title="单据列表"     PageSize="15" ShowBorder="true" 
                ShowHeader="true" AutoHeight="true" AllowPaging="true"
        runat="server"   DataKeyNames="sid,bh"  AutoPostBack="true"  
        OnPageIndexChange="Grid2_PageIndexChange" EnableRowNumber="True" onrowcommand="Grid2_RowCommand" 
                OnSort="Grid2_Sort"  AnchorValue="100% -36px" >
                              <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                    <ext:Button ID="btnExport" Text="导出EXCEL" Icon="Delete" OnClick="btnExport_Click" EnableAjax="false" runat="server">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>      
        <Columns>
            <ext:BoundField Width="60px" DataField="ybh" HeaderText="单号"  />           
                 <ext:BoundField Width="60px" DataField="yname" HeaderText="姓名"  />
                     <ext:BoundField Width="120px" DataField="ytime" HeaderText="考勤时间"  />                                              
            <ext:TemplateField Width="60px"  HeaderText="是否请假" >
                <ItemTemplate><%#getstatus(Eval("sid").ToString())%>
                </ItemTemplate>
             </ext:TemplateField>         

        </Columns>
    </ext:Grid> 
     

  
     
        </Items>
    </ext:Panel>

    <br />
    <br />
    <br />
    <br />
    <br />
    </form>
</body>
</html>
